home *** CD-ROM | disk | FTP | other *** search
/ FishMarket 1.0 / FishMarket v1.0.iso / fishies / 476-500 / disk_484 / bootpic / bpic_special.i < prev    next >
Text File  |  1992-05-06  |  4KB  |  144 lines

  1. ********************************************************************************
  2. *                                                                              *
  3. *                      Include file for BootPic V1.0                           *
  4. *                                                                              *
  5. ********************************************************************************
  6.  
  7. *That's the beginning of my very special structure. Everything the programm
  8. *needs (including its own code) is put in one big piece of memory instead of
  9. *allocating some bytes for every single structure that has to be made resident .
  10.  
  11.                 rsreset
  12. RT_MATCHWORD    rs.w    1   ;our resident structure
  13. RT_MATCHTAG     rs.l    1
  14. RT_ENDSKIP      rs.l    1
  15. RT_FLAGS        rs.b    1
  16. RT_VERSION      rs.b    1
  17. RT_TYPE         rs.b    1
  18. RT_PRI          rs.b    1
  19. RT_NAME         rs.l    1
  20. RT_IDSTRING     rs.l    1
  21. RT_INIT         rs.l    1
  22. RT_SIZE         rs.l    0
  23.  
  24. RTC_MATCHWORD   EQU     $4AFC
  25. NT_MEMORY       EQU     10
  26.  
  27. myLN_SUCC       rs.l    1  ;our memlist for resident memory
  28. myLN_PRED       rs.l    1
  29. myLN_TYPE       rs.b    1
  30. myLN_PRI        rs.b    1
  31. myLN_NAME       rs.l    1
  32. ML_NUMENTRIES   rs.w    1
  33. ml_addr1        rs.l    1  ;^to this structure + our resident programm
  34. ml_len1         rs.l    1
  35. ml_addr2        rs.l    1  ;^to our saved BODY-chunk
  36. ml_len2         rs.l    1
  37. zeroterm        rs.l    1  ;for reasons of security
  38. restab          rs.l    2  ;this pointer is written into Sysbase->KickTagPtr
  39.                            ;1.long:^to resident structure, 2. long:zero or
  40.                            ;^to next restab (with bit $1f set)
  41. ViewPort        rs.l    0  ;our Viewport
  42. vp_Next         rs.l    1
  43. vp_ColorMap     rs.l    1
  44. vp_DspIns       rs.l    1
  45. vp_SprIns       rs.l    1
  46. vp_ClrIns       rs.l    1
  47. vp_UCopIns      rs.l    1
  48. vp_DWidth       rs.w    1
  49. vp_DHeight      rs.w    1
  50. vp_DxOffset     rs.w    1
  51. vp_DyOffset     rs.w    1
  52. vp_Modes        rs.w    1
  53. vp_reserved     rs.w    1
  54. vp_RasInfo      rs.l    1
  55.  
  56. View            rs.l    0  ;our View
  57. v_ViewPort      rs.l    1
  58. v_LOFCprList    rs.l    1
  59. v_SHFCprList    rs.l    1
  60. v_DyOffset      rs.w    1
  61. v_DxOffset      rs.w    1
  62. v_Modes         rs.w    1
  63.  
  64. coltab          rs.b    200 ;here our colors are saved (see getcols!)
  65.  
  66. RasInfo         rs.l    0  ;our Rasinfo
  67. ri_Next         rs.l    1
  68. ri_BitMap       rs.l    1
  69. ri_RxOffset     rs.w    1
  70. ri_RyOffset     rs.w    1
  71.  
  72. Bitmap          rs.l    0  ;our Bitmap
  73. bm_bytesperrow  rs.w    1
  74. bm_rows         rs.w    1
  75. bm_flags        rs.b    1
  76. bm_depth        rs.b    1
  77. bm_pad          rs.w    1
  78. bm_planes       rs.b    32
  79.  
  80. bmw             rs.w    1  ; width of the whole picture
  81. bmh             rs.w    1  ; height of the whole picture
  82. depth           rs.w    1  ; number of planes
  83. mask            rs.b    1  ; byte set,if there's any masking
  84. pad6            rs.b    1  ; fillbyte
  85.  
  86. idendity        rs.l    0  ; here our idnames are saved (BPic,0,0)
  87. id_name         rs.b    6
  88. id_string       rs.b    30
  89. code            rs.l    0  ;there we'll copy our code
  90.  
  91. **** end of my special structure ****
  92.  
  93. **** CHUNK-definitions ****
  94.                 rsreset
  95. BMHD            rs.l    0  ;contains dimension of the picture
  96. w               rs.w    1
  97. h               rs.w    1
  98. x               rs.w    1
  99. y               rs.w    1
  100. nplanes         rs.b    1
  101. masking         rs.b    1
  102. compression     rs.b    1
  103. pad1            rs.b    1
  104. transparentcolor    rs.w    1
  105. xaspect         rs.b    1
  106. yaspect         rs.b    1
  107. pagewidth       rs.w    1
  108. pageheight      rs.w    1
  109.  
  110.                 rsreset
  111. CAMG            rs.l    0  ;contains viewmodes
  112. modes           rs.l    1
  113.  
  114. *** end of CHUNK-def ***
  115.  
  116.                 rsreset    ; nodestructure
  117. LN_SUCC         rs.l    1
  118. LN_PRED         rs.l    1
  119. LN_TYPE         rs.b    1
  120. LN_PRI          rs.b    1
  121. LN_NAME         rs.l    1
  122.  
  123.                 rsreset
  124. diskio          rs.b    48  ; this is used when waiting for disk
  125. replyport       rs.b    34
  126. readbuffer      rs.b    1028
  127. readend         rs.l    0
  128.                 rsreset
  129. skip1           rs.b    28  ; io_request structure (used when waiting for disk
  130. io_command      rs.w    1   ; on bootup)
  131. skip2           rs.b    6
  132. io_length       rs.l    1
  133. io_data         rs.l    1
  134. io_offset       rs.l    1
  135.                 rsreset
  136.  
  137. pr_cli          equ     $ac ; to find out wether WB or CLI
  138. pr_msgport      equ     $5c ; out of dos_extends.i
  139.  
  140.  
  141.  
  142.  
  143.  
  144.